Apparatus and method for 3d surface measurement

ABSTRACT

An apparatus for 3D surface measurement of a target surface, the apparatus comprising: a first projector configured to project a fringe pattern onto the target surface; a second projector configured to project a fringe pattern onto the target surface; a first camera configured to capture the fringe patterns projected by the first projector and the second projector; a second camera configured to capture the fringe patterns projected by the first projector and the second projector; and a computer configured to perform fringe pattern processing of the fringe patterns captured by the first camera and the second camera and to perform data stitching and merging to obtain a 3D surface reconstruction.

TECHNICAL FIELD

This invention relates generally to an apparatus and method for three-dimensional (3D) surface measurement, and relates more particularly, though not exclusively, to an apparatus and method for three-dimensional (3D) surface measurement of a non-contactable object having steep profiles.

BACKGROUND

Fringe projection profilometry (FPP) is an optical method for measuring a 3D shape or surface of an object, with the advantages of having a full field, high speed and non-contact nature [3-6]. This technique utilizes a projector to project predefined images, which are usually fringe patterns, onto a target surface, and uses a camera to capture the reflected fringe patterns. It can be automatically controlled by computer, and recorded images are processed with algorithms to calculate some intermediate results such as phase values, modulation values, and height values. Output using FPP may be in the form of a cloud of 3D points, otherwise known as a “3D point cloud.” A triangle mesh or surface drawings may be applied for better visualization. However, problems of shadow and obstruction issues arise when mechanical movement or rotation, either of the object to be measured or of the projector and camera, cannot or is preferred not to take place during measurement.

SUMMARY

An apparatus and method for 3D shape measurement is proposed that enables two projectors and two cameras to form four optical noncontact 3D shape sensors for shape measurement and inspection with enhancement of data density and validity. The four optical 3D sensors are located at positions surrounding a target surface so as to be able to obtain data of the target surface from four different views without any mechanical shifting or rotation required of either the target surface or the optical 3D sensors.

Calibration of all four optical 3D sensors is performed with a same world or global coordinates, which makes data combination and merging easy without requiring any additional feature points for capturing and identification.

A software provided for system control and data processing with high automaticity renders the apparatus and method especially user-friendly.

An algorithm of phase calculation with invalidity identification framework provides more reliable phase results for dimensional data calculation.

According to a first aspect, there is provided an apparatus for 3D surface measurement of a target surface, the apparatus comprising: a first projector configured to project a fringe pattern onto the target surface; a second projector configured to project a fringe pattern onto the target surface; a first camera configured to capture the fringe patterns projected by the first projector and the second projector; a second camera configured to capture the fringe patterns projected by the first projector and the second projector; and a computer configured to perform fringe pattern processing of the fringe patterns captured by the first camera and the second camera and to perform data stitching and merging to obtain a 3D surface reconstruction.

The first projector, the second projector, the first camera and the second camera may be calibrated with a same global coordinates.

The first projector and the first camera may form a first optical 3D sensor, the second projector and the first camera may form a second optical 3D sensor, the first projector and the second camera may form a third optical 3D sensor, and the second projector and the second camera may form a fourth optical 3D sensor.

The apparatus may further comprise a frame configured to support and position the first projector, the second projector, the first camera and the second camera over and around the target surface.

The first projector and the second projector may be positioned diametrically opposite each other about the target surface.

The first camera and the second camera may be positioned diametrically opposite each other about the target surface.

According to a second aspect, there is provided a method for 3D surface measurement of a target surface, the method comprising the steps of: a first projector projecting a fringe pattern onto the target surface; a first camera capturing the fringe pattern projected by the first projector; a second camera capturing the fringe pattern projected by the first projector; a second projector projecting a fringe pattern onto the target surface; the first camera capturing the fringe pattern projected by the second projector;

the second camera capturing the fringe pattern projected by the second projector; and a computer processing the captured fringe patterns and performing data stitching and merging to obtain a 3D surface reconstruction.

The method may further comprise calibrating the first projector, the second projector, the first camera and the second camera with a same global coordinates prior to the first projector projecting the fringe pattern onto the target surface.

Processing the captured fringe patterns may comprise performing phase retrieval and a phase invalidity identification process.

Performing data stitching and merging may comprise calculating an interval distance between two neighboring points obtained from processing the captured fringe patterns.

BRIEF DESCRIPTION OF THE DRAWINGS

In order that the invention may be fully understood and readily put into practical effect there shall now be described by way of non-limitative example only exemplary embodiments, the description being with reference to the accompanying illustrative drawings.

In the drawings:

FIG. 1 is a schematic illustration of an apparatus for 3D surface measurement;

FIG. 2 is a photograph of the apparatus of FIG. 1;

FIG. 3 a is a schematic illustration of projector and camera combinations provided to solve shadow and obstruction problems;

FIG. 3 b are images obtained by the combinations of FIG. 3 a;

FIG. 4 a are phase shifted fringe patterns;

FIG. 4 b is a retrieved wrapped phase map;

FIG. 5 is a flowchart of a phase invalidity identification method;

FIG. 6 is an illustration of calibration using a stereovision method taking into account camera and projector lens distortion;

FIG. 7 is a collection of different views of a reconstructed 3D surface;

FIG. 8 is an illustration of data registration of a 3D surface;

FIG. 9 is a data visualization of a 3D surface in triangle surfaces with lighting; and

FIG. 10. is a flowchart of an exemplary method for 3D surface measurement.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

An exemplary apparatus 10 and method (100) for 3D surface measurement will be described with reference to FIGS. 1 to 10 below.

As shown in FIGS. 1 and 2, the apparatus 10 comprises two projectors, a first projector 22 a and a second projector 22 b connected with a graphic processing unit which is able to expand a virtual computer screen. The projectors 22 a, 22 b each have a spatial light modulator (SLM) and are configured to project fringe patterns onto a target surface 90, serving as light sources for structured light illumination. The SLM is configured to modulate the intensity of the light beam projected by the projector 22 a, 22 b, and can modulate the phase or both intensity and phase simultaneously.

The apparatus 10 also comprises two cameras, a first camera 24 a and a second camera 24 b having appropriately chosen lenses. Connecting cables used may be either USB or FireWire wires. The cameras 24 a, 24 b each preferably have a digital photo sensor that may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) device, with a minimum a resolution of 1,024 by 1,280 pixels.

The projectors 22 a, 22 b and cameras 24 a, 24 b are positioned to surround the target surface 90, and are connected to a computer 26 with a display serving as a controlling and computing unit. The computer is used to control the projection and capture processes during measurement, and to process the captured images and dimensional data. The performance of each SLM is controlled by its control unit and the computer 26. The projectors 22 a, 22 b can thus be controlled to project any patterns generated by the computer 26. In this way, a phase shifting technique with temporal phase unwrapping technique can be readily implemented using these projectors 22 a, 22 b with no mechanical movement required of the target surface 90 or the projectors 22 a, 22 b and/or cameras 24 a, 24 b.

A frame 26 may be provided to support and position the projectors 22 a, 22 b and cameras 24 a, 24 b over and around the target surface 90. The frame 26 is preferably of a cruciform shape, with the projectors 22 a, 22 b and cameras 24 a, 24 b disposed separately at the end of each arm of the cruciform shape. In an exemplary embodiment, the two projectors 22 a, 22 b are disposed diametrically opposite each other about the target surface 90; likewise the two cameras 24 a, 24 b are disposed diametrically opposite each other about the target surface 90. The frame 26 is preferably configured to allow adjustment of the relative positions of the projectors 22 a, 22 b and cameras 24 a, 24 b in order to achieve a best configuration for working the apparatus 10.

Using the apparatus 10, a method (100) for true 3D shape measurement of surface with fringe projection without mechanical movement is achieved, while solving the shadow and obstruction issues. In the present method (100), the two projectors 22 a, 22 b and two cameras 24 a, 24 b are able to form four distinct optical 3D sensors using a combination of any one projector 22 a or 22 b and one camera 24 a or 24 b as shown in FIG. 3. The four optical 3D sensors thus comprise the following four combinations of projectors and cameras:

-   -   Combination 1: projector 22 a with camera 24 a;     -   Combination 2: projector 22 b with camera 24 a;     -   Combination 3: projector 22 a with camera 24 b; and     -   Combination 4: projector 22 b with camera 24 b.

With control by the computer 26, fringe patterns can be projected by each of the projectors 22 a or 22 b to let each of the cameras capture 24 a or 24 b the deformed fringe patterns which contain dimensional information of the tested or target surface 90. Because each of the four combinations of optical 3D sensor is located at a different viewing position, each combination thus gives a 3D point cloud from a different view. The whole surface shape of the target surface 90 without shadow and obstruction problems can thus be obtained by combining the four 3D point clouds obtained from the four different views by the four combinations of optical 3D sensors. All these processes are preferably configured to be done automatically with the computer 26 performing the controlling and numerical calculations.

Fringe Pattern Projection and Capture

In the present method (100), each combination 1, 2, 3 and 4 of the optical 3D sensor performs fringe projection profilometry in which a fringe pattern is sequentially projected onto the test object or target surface 90 (102) using each of the projectors 22 a or 22 b. The projected pattern in this process is preferably predefined. In the present method (100), multi-frequency sinusoidal fringe patterns with phase stepping are preferred as they can be easily implemented by the digital projectors 22 a, 22 b and processed with phase shifting and unwrapping algorithms for phase retrieval subsequently.

In an exemplary embodiment of the method (100), the fringe pattern used is a sinusoidal fringe, which is usually designed as

f=255×(0.5+0.5 cos φ)  (1)

Normally, the phase φ is linearly distributed along one direction.

From a camera view, the projected fringe pattern will seem to be deformed according to height variation of the tested or target surface 90. The fringe pattern projected by each projector 22 a, 22 b is separately captured by each of the cameras 24 a, 24 b (104), and the captured fringe patterns as shown in FIG. 3 b are stored in the computer 26. Since all four combinations of the optical 3D sensors perform the fringe projection profilometry, four different fringe patterns are captured. FIG. 4 a is another example of four captured images of a same target surface obtained using the apparatus 10.

Generally the captured fringe intensity I can be expressed as

I=A+B cos φ,  (2)

where A is the background intensity and B is the amplitude of the sinusoidal fringe. Phase Retrieval with Invalidity Identification Framework

Digital image processing then follows, but since the fringe pattern is a special type of image, usually the procedure is called fringe pattern processing or phase retrieval (106). The captured fringe patterns are phase shifted phase patterns as shown in FIG. 4 a, and are used as input data for a phase shifting algorithm to calculate fringe phase and modulation.

For phase retrieval, once the phase shifting technique is utilized to obtain a retrieved wrapped phase map as shown in FIG. 4 b, the nth phase shifted fringe patterns I_(n) could be represented by the following equation (3):

I _(n) =A+B cos(φ+δ_(n)),  (3)

where the phase shifting amount is calculated by equation (4)

$\begin{matrix} {{\delta_{n} = {2\pi \frac{n}{N}}},{n = 0},1,2,\ldots \mspace{14mu},{N - 1},} & (4) \end{matrix}$

and N is the total phase shifting number.

The phase shifting algorithm can be applied for wrapped phase retrieval. The fringe phase result of each fringe frequency is used together to unwrap phase wraps, which limits the phase value to within [−pi, pi] due to an arctangent operation.

Using a least squares fitting of phase shifting and temporal phase unwrapping process, not only can the phase be unwrapped, but phase validity can be also identified. The wrapped phase φ^(w) and fringe modulation M can be calculated by the following equations (5) and (6):

$\begin{matrix} {{\varphi^{w} = {{- \arctan}\frac{\sum\limits_{n = 0}^{N - 1}{I_{n}\sin \; \delta_{n}}}{\sum\limits_{n = 0}^{N - 1}{I_{n}\cos \; \delta_{n}}}}},} & (5) \\ {M = {\frac{2}{N}\sqrt{\left( {\sum\limits_{n = 0}^{N - 1}{I_{n}\sin \; \delta_{n}}} \right)^{2} + \left( {\sum\limits_{n = 0}^{N - 1}{I_{n}\cos \; \delta_{n}}} \right)^{2}}}} & (6) \end{matrix}$

Furthermore, the wrapped phase map as shown in FIG. 4 b will be unwrapped by using temporal phase unwrapping technique if the multi-frequency fringe patterns are designed and projected.

The least squares fitting of the unwrapped phase with different fringe frequencies from temporal phase unwrapping will improve the phase measuring precision and at the same time it can also provide Root Mean Square Error (RMSE) as a judging quantity for identification of invalid phase points. A common temporal phase unwrapping procedure is given by the following equation (7):

$\begin{matrix} {\varphi_{k}^{u} = \left\{ \begin{matrix} {\varphi_{k}^{w},} & {k = 1} \\ {{\varphi_{k}^{w} + {{{{Round}\left( \frac{{\varphi_{k - 1}^{u} \cdot {m_{k}/m_{k - 1}}} - \varphi_{k}^{w}}{2\pi} \right)} \cdot 2}\pi}},} & {{k > 1},} \end{matrix} \right.} & (7) \end{matrix}$

and RMSE can be calculated by the following equation (8):

$\begin{matrix} \begin{matrix} {{RMSE} = \sqrt{\frac{\sum\limits_{k = 1}^{K}\left( {\varphi_{k}^{u} - {m_{k} \cdot X}} \right)^{2}}{K}}} \\ {= {\sqrt{\frac{\sum\limits_{k = 1}^{K}\left( {\varphi_{k}^{u} - {m_{k} \cdot {\sum\limits_{k = 1}^{K}{\varphi_{k}^{u}{m_{k}/{\sum\limits_{k = 1}^{K}m_{k}^{2}}}}}}} \right)^{2}}{K}}.}} \end{matrix} & (8) \end{matrix}$

Using fringe modulation M and fitting error RMSE, the invalid phase values can be easily identified to improve the reliability of the phase dataset. The whole framework is shown in FIG. 5. Using the phase invalidity identification method or framework of FIG. 5 can significantly improve the reliability of phase values as well as the 3D point clouds, since the phase invalidity identification process is to make sure all phase values that will be processed in subsequent dimensional calculations are accurate and reliable.

System Calibration with Global Coordinates

Before actual measurement using the four combinations of optical 3D sensors is performed, calibration of the system or apparatus 10 should be carried out in advance (101). Calibration (101) of the apparatus 10 is different from conventional calibration approaches of fringe projection profilometry because a same coordinate of calibration for the multiple optical 3D sensors is required in order to make a dimensional dataset from every combination 1, 2, 3 and 4 of optical 3D sensor have the same world or global coordinates.

During calibration (101), as shown in FIG. 6, a camera calibration pattern is presented at different positions and angles within a measuring range of the apparatus 10. A stereovision calibration method is then applied to each camera 24 a or 24 b and projector 22 a or 22 b combination 1, 2, 3 and 4 by treating the projector 22 a or 22 b as a camera according to the fringe phase values. To do so, the calibration pattern is located at a common position where every projector 22 a, 22 b and camera 24 a, 24 b can actually ‘see’ the whole calibration pattern. In this way, common or global coordinates can be determined and the whole calibration is based on these global coordinates.

Calibration (101) is essential for this apparatus 10 and method (100). The four optical 3D sensors 1, 2, 3, 4 should be calibrated with the same global coordinates in order to make data stitching in measurement more convenient. From the phase value, 3D data can be reconstructed once the apparatus 10 is calibrated. Ultimately, four sets of dimensional data from the four different views obtained by the four combinations 1, 2, 3 and 4 of optical 3D sensors are stitched and merged into one dataset (108).

Dimensional Reconstruction with Data Stitching and Merging

Once the system is calibrated, the relationship between phase value and dimensional value is already determined. That is to say, in measurement, if a reliable phase value can be retrieved from the fringe patterns, the out-of-plane and in-plane dimensions can be easily reconstructed with system parameters obtained from calibration. For each combination 1, 2, 3, or 4 of projector 22 a or 22 b and camera 24 a or 24 b, the resultant data is one set of dimensional data. In all, the method (100) reconstructs four dimensional datasets as shown in FIG. 7, each dataset comprising a 3D point cloud. Subsequently, these are combined with merging of some data at the common regions if the 3D point cloud is too dense, which is not always good for later processing such as data visualization. As mentioned above, the four datasets are located in the same global coordinates, as determined during the calibration (101) described above. Therefore, data stitching (108) is relatively easily performed, as shown in FIG. 8. The data stitching or merging process (108) is implemented by calculating an interval distance between two neighboring points in order to remove some too dense points. The resultant 3D point cloud is friendly for following or subsequent processing, if any is desired. For example, as shown in FIG. 9, the 3D data can be nicely visualized with triangle surfaces and lighting.

It is envisaged that the above described apparatus 10 and method (100) may be adapted to many production lines for online inspection of produced parts. The apparatus 10 may be adjusted to change the measuring volume for different applications where necessary.

Whilst there has been described in the foregoing description exemplary embodiments of the present invention, it will be understood by those skilled in the technology concerned that many variations in details of design, construction and/or operation may be made without departing from the present invention. For example, while two projectors and two cameras have been described above, the apparatus may comprise more than two projectors and more than two cameras for more robust 3D surface measurement. 

1. An apparatus for 3D surface measurement of a target surface, the apparatus comprising: a first projector configured to project a fringe pattern onto the target surface; a second projector configured to project a fringe pattern onto the target surface; a first camera configured to capture the fringe patterns projected by the first projector and the second projector; a second camera configured to capture the fringe patterns projected by the first projector and the second projector; and a computer configured to perform fringe pattern processing of the fringe patterns captured by the first camera and the second camera and to perform data stitching and merging to obtain a 3D surface reconstruction, wherein the first projector, the second projector, the first camera and the second camera are calibrated with a same global coordinates.
 2. (canceled)
 3. The apparatus of claim 1, wherein the first projector and the first camera form a first optical 3D sensor, wherein the second projector and the first camera form a second optical 3D sensor, wherein the first projector and the second camera form a third optical 3D sensor, and wherein the second projector and the second camera form a fourth optical 3D sensor.
 4. The apparatus of claim 1, further comprising a frame configured to support and position the first projector, the second projector, the first camera and the second camera over and around the target surface.
 5. The apparatus of claim 1, wherein the first projector and the second projector are positioned diametrically opposite each other about the target surface.
 6. The apparatus of claim 1, wherein the first camera and the second camera are positioned diametrically opposite each other about the target surface.
 7. A method for 3D surface measurement of a target surface, the method comprising the steps of: a first projector projecting a fringe pattern onto the target surface; a first camera capturing the fringe pattern projected by the first projector; a second camera capturing the fringe pattern projected by the first projector; a second projector projecting a fringe pattern onto the target surface; the first camera capturing the fringe pattern projected by the second projector; the second camera capturing the fringe pattern projected by the second projector; and a computer processing the captured fringe patterns and performing data stitching and merging to obtain a 3D surface reconstruction; calibrating the first projector, the second projector, the first camera and the second camera with a same global coordinates prior to the first projector the fringe pattern onto the target surface.
 8. (canceled)
 9. The method of claim 7, wherein processing the captured fringe patterns comprises performing phase retrieval and a phase invalidity identification process.
 10. The method of claim 7, wherein performing data stitching and merging comprises calculating an interval distance between two neighboring points obtained from processing the captured fringe patterns. 